//body-parser 解析数据的
const express = require('express')

const mybody = require('./15-test')

const app = express();

//1. 定义中间件
app.use(mybody.bodyParser)

app.post('/user', (req, res) => {

    res.send(req.body);
})
app.listen(89, () => {
    console.log('http://127.0.0.1:89');

})
